﻿using System;
using System.Collections.Generic;

namespace deviceManage.Models
{
    /// <summary>
    /// 采购合同
    /// </summary>
    public partial class BuyContract
    {
        public BuyContract()
        {
            Device = new HashSet<Device>();
        }

        public string Id { get; set; }
        public string Title { get; set; }
        public int? Type { get; set; }
        public string BuyUser { get; set; }
        public int? BuyCount { get; set; }
        public DateTime? StartDate { get; set; }
        public DateTime? EndDate { get; set; }
        public decimal? Amount { get; set; }
        public string Addr { get; set; }
        public string Purpose { get; set; }
        public DateTime? CreateDate { get; set; }
        public string CreateUserId { get; set; }
        /// <summary>
        /// 是否删除，1表示删除，0正常
        /// </summary>
        public int Deleted { get; set; }

        public string DeviceTypeId { get; set; }
        public virtual DeviceType DeviceType { get; set; }

        public ICollection<Device> Device { get; set; }
    }
}
